const click1 = () => {
  console.log("click1");
};
const click2 = (e) => {
  console.log("click2",e);
};
const click3 = (name) => {
  console.log("click3",name);
};
const click4 = (name,e) => {
  console.log("click4",name,e);
};
function App() {
  return (
    <div className="App">
      <h1>基础点击</h1>
      <button onClick={click1}>click1</button>
      <h1>传递事件对象</h1>
      <button onClick={click2}>click2</button>
      <h1>传递自定义参数</h1>
      <button onClick={()=>click3('aaa')}>click3</button>
      <h1>传递自定义参数+事件对象</h1>
      <button onClick={(e)=>click4('aaa',e)}>click3</button>
    </div>
  );
}

export default App;

